#!/usr/bin/python
# -*- coding:utf-8 -*-

import os,sys
import json

if __name__ == "__main__":
    dir = "../data"
    for fileName in os.listdir(dir):
        with open(dir+"/"+fileName,"r+") as f:
            str = f.read()
            f.close()
            jsonObj = json.loads(str)
            items = jsonObj['data']['pagelist']
            for item in items:
                print item['title'],"\n"
            sys.exit()
